package com.whmskj.xjlhsc.mobie.menu;

import com.whmskj.xjlhsc.controller.vo.Result;
import com.whmskj.xjlhsc.entity.Scmenutablemoveend;
import com.whmskj.xjlhsc.mobie.menu.service.MenuService;
import com.whmskj.xjlhsc.service.JobmenulinktableService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 张
 * @version 1.0
 */

@RestController
@RequestMapping("mob/menu")
@Tag(description = "移动端菜单",name = "移动端菜单")
public class MenuController {

    @Autowired
    private MenuService menuService;
    @GetMapping("getRoleMenu")
    @Operation(description = "获取用户可以查看的查单信息")
    public Result getRoleMenu(){
       List<Scmenutablemoveend> list = menuService.getRoleMenu();
       return Result.success(list);
    }
}
